home *** CD-ROM | disk | FTP | other *** search
- ps.1.1
-
- def c0, 1.0, 1.0, 1.0, 1.0
- def c1, 0.49, 0.49, 0.49, 0.49
- def c2, 0.0, 0.0, 0.0, 1.0
-
- tex t0 ;Backgroundtexture
- tex t1 ;Scene without bd texture
-
- ;mov r1, t1
- ;dp3 r1, c0, 1-r1
- dp3 r1, c0, t1 ;r1 is zero if color in scene texture is black
- add r0.a, r1, c1 ;add 0.49 so we can use the cnd function
- cnd r0, r0.a, c2, t0 ;if color in scene texture set black otherwise use background texture
- mov r0.a, c2.w ;set alpha to 1, don't know if this is required
-
-
-